package com.bailan.pojo;

import java.io.Serializable;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author BaiLan
 * @since 2022:05:24
 */
@Getter
@Setter
  public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;
  @TableId("T_id")
      private String id;
  @TableField("T_password")
    private String password;

    private String tName;

    private String tSex;

    private String tAge;

    private String tAddress;

    private String tEmail;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Teacher teacher = (Teacher) o;
    return Objects.equals(id, teacher.id) && Objects.equals(password, teacher.password);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, password);
  }
}
